home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-01-06 | 3.9 KB | 150 lines | [TEXT/EDIT] |
- // packages.h
- // © Copyright 1984 Consulair Corp, All Rights Reserved.
- // Portions © Copyright Apple Computer, Inc: 1982, 1983, 1984
- // Stanford University, SUMEX project: 1984
- // Requires Macdefs.h
-
- #ifndef PackagesLoaded
-
- #ifndef MacdefsLoaded
- #include "macdefs.h"
- #endif
-
- #define PackagesLoaded
-
- // Package IDs
-
- #define dskInit 2 /* Disk Initialization */
- #define stdFile 3 /* Standard File */
- #define flPoint 4 /* Floating-Point Arithmetic */
- #define trFunc 5 /* Transcendental Functions */
- #define intUtil 6 /* International Utilities */
- #define bdConv 7 /* Binary/Decimal Conversion */
-
- // constants for Standard File package
-
- #define putDlgID -3999 /* SFPutFile dialog template ID */
- #define getDlgID -4000 /* SFGetFile dialog template ID */
- #define putSave 1 /* save button */
- #define putCancel 2 /* cancel button */
- #define putEject 5 /* eject button */
- #define putDrive 6 /* drive button */
- #define putName 7 /* editTExt item for file name */
-
- #define getOpen 1 /* open button */
- #define getCancel 3 /* cancel button */
- #define getEject 5 /* eject button */
- #define getDrive 6 /* drive button */
- #define getNmList 7 /* userItem for file name list */
- #define getScroll 8 /* userItem for scroll bar */
-
- // constants for manipulation of international resources
- // mask for currency format flags
- // constant specifies the bit# as used in BitTst
-
- #define currLeadingZ 128 /* set if leading zero */
- #define currTrailingZ 64 /* set if trailing zero */
- #define currNegSym 32 /* set if minus sign, */
- /* reset if brackets for neg num */
- #define currSymTrail 16 /* set if currency symbol trails, */
- /* reset if leads */
-
- // short date form
- // constant specifies absolute value of byte
-
- #define DMY 2 /* day,month,year */
- #define YMD 1 /* year,month,day */
- #define MDY 0 /* month,day,year */
-
- // date element format flags
- // constant specifies the bit# as used in BitTst
-
- #define mntLeadingZ 128 /* set if leading 0 for month */
- #define dayLeadingZ 64 /* set if leading zero for day */
- #define century 32 /* set if century, reset if no century */
-
- // time element format flags
- // constant specifies the bit# as used in BitTst
-
- #define hrLeadingZ 128 /* set if leading zero for hours */
- #define minLeadingZ 64 /* set if leading zero for minutes */
- #define secLeadingZ 32 /* set if leading zero for seconds */
- #define shortDate 0 /* long flag specifying short date format */
- #define longDate 256 /* long flag specifying long date format */
- #define medDate 512 /* long flag specifying medium date format */
- #define abbrevDate 512 /* constant for IUDateString() abbrev format */
-
- // Standard File
-
- typedef struct {
- char good;
- char copy;
- OSType ftype;
- short vRefNum;
- short version;
- char fName;
- char Name[63];
- } SFReply;
-
- struct __ST
- {
- long ftype[4];
- short junk;
- };
-
- #define SFTypeList struct __ST
-
-
- // interface for international resources
-
- struct _IR0
- {
- char decimalPt;
- char thousSep;
- char listSep;
- char currSym1;
- char currSym2;
- char currSym3;
- char currFmt;
- char shortDateF;
- char dateFmt;
- char dateSep;
- char timeCycle;
- char timeFmt;
- char mornStr[4];
- char eveStr[4];
- char timeSep;
- char timeSuff[8];
- char metricSys;
- short intl0Vers;
- };
-
- #define intl0Rec struct _IR0
-
- struct _IR1
- {
- char days[7][16]; // strings for Sun - Sat
- char months[12][16];
- char suppressDay;
- char dateFmt;
- char dayLeading0;
- char monLen;
- char st[5][4];
- short intl1Vers;
- ProcPtr excepRtn;
- };
-
- #define intl1Rec struct _IR1
-
- // Functions returning other than integer
-
- #define GetString (Handle)GetString
- #define NewString (Handle)NewString
-
- #endif
-
-
-
-
-
-